package chapter04;

/**
 * Created by Miracle yaochengwei on 2022/4/4 17:38
 */
//演示一个赋值运算符的使用
public class AssignOperator {

    //编写一个main方法
    public static void main(String[] args) {

        int n1 = 10;
        n1 += 4;// n1 = n1 + 4;
        System.out.println(n1); // 14
        n1 /= 3;// n1 = n1 / 3;//4
        System.out.println(n1); // 4

        //
        byte b = 3;
        b += 2; // 等价 b = (byte)(b + 2);
        b++;// b = (byte)(b+1);


    }
}
